package edu.ynu.se.xiecheng.achitectureclass.service;

import edu.ynu.se.xiecheng.achitectureclass.entity.Device;
import java.util.List;

public interface IDeviceService {
    Device save(Device device);
    Device findById(Long id);
    List<Device> findAll();
    void delete(Long id);
    List<Device> findByGreenhouseId(Long greenhouseId);
    Device findBySerialNumber(String serialNumber);
    Device findByDeviceId(String deviceId);
    List<Device> findByGreenhouseIdAndCategory(Long greenhouseId, Integer category);
} 